package org.edu.controller;

import javax.annotation.Resource;

import org.edu.bean.Businesstaxform;

import org.edu.service.BusinesstaxformService;


import com.opensymphony.xwork2.ActionSupport;
@SuppressWarnings("serial")
public class BusinesstaxformController extends ActionSupport {
	private Integer page = 1;
	private Businesstaxform entity;
	@Resource
	private BusinesstaxformService businesstaxformservice;
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Businesstaxform getEntity() {
		return entity;
	}
	public void setEntity(Businesstaxform entity) {
		this.entity = entity;
	}
	public BusinesstaxformService getBusinesstaxformservice() {
		return businesstaxformservice;
	}
	public void setBusinesstaxformservice(
			BusinesstaxformService businesstaxformservice) {
		this.businesstaxformservice = businesstaxformservice;
	}
	
	public String input() throws Exception {
		try{
			businesstaxformservice.save(entity);
		}catch(Exception e){
			e.printStackTrace();
		}
		return "input";
	}
}
